<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>E-天下商旅</title>
<link href="${ctx}/resources/css/page_index.css" rel="stylesheet" type="text/css">
</head>

<body>


<jsp:include page="commons/header.jsp">
	 <jsp:param name="currentMenu" value="menu2"/>
</jsp:include>

<div class="main_box">
<div class="main cf">

	
    <jsp:include page="commons/left.jsp"></jsp:include>
	<div class="right">
		<div class="right_box">
			<div class="title"><span><a href="#">公司公告</a></span><a href="${ctx}/notice/list" class="more">更多</a></div>
			<div class="content cf">
				<div class="right_left">
						<ul class="news_list cf">
							<c:forEach var="news" items="${noticePage.result}">
							   <li>
							   		<a href="javascript:showNews('${news.id}')" title="${news.title}">
							   		 <c:choose>
							         	<c:when test="${fn:length(news.title) > 20}">
							         	 	${fn:substring(news.title,0,20)}...
							         	</c:when>
							         	<c:otherwise>
							         		${news.title}
							         	</c:otherwise>
							         </c:choose>
							         </a>
							   <span><fmt:formatDate value="${news.createTime}" pattern="yyyy-MM-dd" /></span></li>
							</c:forEach>
						</ul>
				</div>
				<div class="right_right">
					<a href="#"><img src="${ctx}/resources/img/adv01.gif" alt="连接维护中"></a>
					<a href="#"><img src="${ctx}/resources/img/adv02.gif" alt="连接维护中"></a>
					<a href="#"><img src="${ctx}/resources/img/adv03.gif" alt="连接维护中"></a>
				</div>
			</div>
		</div>
		<div class="ad cf">
			<a href="#"><img src="${ctx}/resources/img/banner.gif" alt="连接维护中"></a>
		</div>
		<div class="right_box right_box_shot1">
			<div class="title"><span class="ico_1"><a href="#">留言管理</a></span><a href="${ctx}/mlMR/Index" class="more">更多</a></div>
			<div class="content">
				<ul class="news_list cf">
					<c:forEach var="leave" items="${leavePage.result}">
					<li><a href="${ctx}/mlMR/Index" title ="${leave.leaveTitle}">					         
					         <c:choose>
						         	<c:when test="${fn:length(leave.leaveTitle) > 16}">
						         	 	${fn:substring(leave.leaveTitle,0,16)}...
						         	</c:when>
						         	<c:otherwise>
						         		${leave.leaveTitle}
						         	</c:otherwise>
							 </c:choose>
					    </a><span><fmt:formatDate value="${leave.leaveTime }" pattern="yyyy-MM-dd" /></span></li>
					</c:forEach>
				</ul>
			</div>
		</div>
		<div class="right_box right_box_shot2">
			<div class="title"><span class="ico_2"><a href="#">旅游咨询</a></span><a href="${ctx}/tlMR/Index" class="more">更多</a></div>
			<div class="content">
				<ul class="news_list cf">
					<c:forEach var="leave" items="${travelPage.result}">
					<li>
					     <a title="${leave.leaveTitle}" href="${ctx}/tlMR/Index"><c:choose>
						         	<c:when test="${fn:length(leave.leaveTitle) > 16}">
						         	 	${fn:substring(leave.leaveTitle,0,16)}...
						         	</c:when>
						         	<c:otherwise>
						         		${leave.leaveTitle}
						         	</c:otherwise>
					    </c:choose></a>
					      
					 <span><fmt:formatDate value="${leave.leaveTime }" pattern="yyyy-MM-dd" /></span></li>
					</c:forEach>
				</ul>
			</div>
		</div>
	</div>
</div>
</div>


<jsp:include page="commons/footer.jsp"></jsp:include>

<script src="${ctx}/resources/script/jquery-1.7.min.js"></script>
<script src="${ctx}/resources/script/common.js"></script>
<script type="text/javascript">
/**
 * 显示公告详情
 */
function showNews(nid){
	window.location.href="${ctx}/notice/showNotice?nid="+nid;
}
</script>
</body>
</html>
